package com.bean;


import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Goods {
  private long gid;
  private String gname;
  private String gimg;
  private double gprice;
  private long gstock;
  private String maintainDate;
  private String classify;
  private String gdescribe;
  public Goods(){}
  public Goods(long gid, String gname, String gimg, double gprice, long gstock, String maintainDate, String classify, String gdescribe) {
    this.gid = gid;
    this.gname = gname;
    this.gimg = gimg;
    this.gprice = gprice;
    this.gstock = gstock;
    this.maintainDate = maintainDate;
    this.classify = classify;
    this.gdescribe = gdescribe;
  }

  public long getGid() {
    return gid;
  }

  public void setGid(long gid) {
    this.gid = gid;
  }


  public String getGname() {
    return gname;
  }

  public void setGname(String gname) {
    this.gname = gname;
  }


  public String getGimg() {
    return gimg;
  }

  public void setGimg(String gimg) {
    this.gimg = gimg;
  }


  public double getGprice() {
    return gprice;
  }

  public void setGprice(double gprice) {
    this.gprice = gprice;
  }


  public long getGstock() {
    return gstock;
  }

  public void setGstock(long gstock) {
    this.gstock = gstock;
  }


  public String getMaintainDate() {
    return maintainDate;
  }

  public void setMaintainDate(String maintainDate) {
    this.maintainDate = maintainDate;
  }


  public String getClassify() {
    return classify;
  }

  public void setClassify(String classify) {
    this.classify = classify;
  }


  public String getGdescribe() {
    return gdescribe;
  }

  public void setGdescribe(String gdescribe) {
    this.gdescribe = gdescribe;
  }

  @Override
  public String toString() {
    return "Goods{" +
            "gid=" + gid +
            ", gname='" + gname + '\'' +
            ", gimg='" + gimg + '\'' +
            ", gprice=" + gprice +
            ", gstock=" + gstock +
            ", maintainDate='" + maintainDate + '\'' +
            ", classify='" + classify + '\'' +
            ", gdescribe='" + gdescribe + '\'' +
            '}';
  }
}
